package com.lujieni.seataorder;

import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@MapperScan("com.**.dao")
/*启动feign客户端,扫描com包下的所有feign接口并生成动态代理类*/
@EnableFeignClients(basePackages = "com.lujieni.seataproxy.**")
@EnableAutoDataSourceProxy
public class SeataOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(SeataOrderApplication.class, args);
    }

}
